package com.stedu.mapper;

import com.stedu.bean.Book;
import com.stedu.bean.Classify;
import com.stedu.bean.ClassifyWithBookCount;

import java.util.List;


public interface ClassifyMapper {
    List<Book> selectAll();

    int insertClassify(Classify classify);

    int deleteClassify(Integer cid);

    int updateClassify(Classify classify);

    Classify selectCname(String cname);

    ClassifyWithBookCount selectByIdAndName(Integer cid, String cname);

    // 根据 bid 查询书籍及其分类
    Classify selectBookWithClassifies(String cname);
}
